﻿<%@ Page Title="" Language="C#" MasterPageFile="~/NhanVien/NhanVien.master" AutoEventWireup="true" CodeFile="frmThemCH.aspx.cs" Inherits="NhanVien_frmThemCH" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table class="style1">
        <tr>
            <td>
                <asp:Label ID="Label1" runat="server" Text="Ma Cau Hoi"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtMaCH" runat="server" Enabled="False"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvMaCH" runat="server" 
                    ControlToValidate="txtMaCH" ErrorMessage="Chua nhap du lieu !"></asp:RequiredFieldValidator>
            </td>
            <td>
                <asp:Button ID="btnThemCH" runat="server" onclick="btnThemCH_Click" 
                    Text="Them CH" Width="98px" />
            </td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="Label2" runat="server" Text="Noi Dung"></asp:Label>
            </td>
            <td class="style2">
                <asp:TextBox ID="txtNoidungCH" runat="server" Enabled="False"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvNoidung" runat="server" 
                    ControlToValidate="txtNoidungCH" ErrorMessage="Chua nhap du lieu! !"></asp:RequiredFieldValidator>
            </td>
            <td class="style2">
                <asp:Button ID="btnXoaCH" runat="server" onclick="btnXoaCH_Click" Text="Xoa CH" 
                    Width="99px" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label3" runat="server" Text="Muc Do"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="drplMucdo" runat="server" Enabled="False" Height="16px" 
                    Width="126px">
                    <asp:ListItem>Kho</asp:ListItem>
                    <asp:ListItem>TB</asp:ListItem>
                    <asp:ListItem>De</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td>
                <asp:Button ID="btnSua" runat="server" onclick="btnSua_Click" Text="Sua CH" 
                    Width="99px" />
            </td>
        </tr>
        <tr>
            <td class="style3">
                <asp:Label ID="Label4" runat="server" Text="A"></asp:Label>
                <asp:TextBox ID="txtA" runat="server" AutoPostBack="True" Enabled="False" 
                    ontextchanged="txtA_TextChanged"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvA" runat="server" ControlToValidate="txtA" 
                    ErrorMessage="Chua nhap du lieu! !"></asp:RequiredFieldValidator>
            </td>
            <td class="style3">
            </td>
            <td class="style3">
                <asp:Button ID="btnHuy" runat="server" onclick="btnHuy_Click" 
                    Text="Huy Thao Tac" Width="95px" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label5" runat="server" Text="B"></asp:Label>
                <asp:TextBox ID="txtB" runat="server" AutoPostBack="True" Enabled="False" 
                    ontextchanged="txtB_TextChanged"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvB" runat="server" ControlToValidate="txtB" 
                    ErrorMessage="Chua nhap du lieu! !"></asp:RequiredFieldValidator>
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label6" runat="server" Text="C"></asp:Label>
                <asp:TextBox ID="txtC" runat="server" AutoPostBack="True" Enabled="False" 
                    ontextchanged="txtC_TextChanged"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvC" runat="server" ControlToValidate="txtC" 
                    ErrorMessage="Chua nhap du lieu! !"></asp:RequiredFieldValidator>
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label7" runat="server" Text="D"></asp:Label>
                <asp:TextBox ID="txtD" runat="server" AutoPostBack="True" Enabled="False" 
                    ontextchanged="txtD_TextChanged"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvD" runat="server" ControlToValidate="txtD" 
                    ErrorMessage="Chua nhap du lieu! !"></asp:RequiredFieldValidator>
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label8" runat="server" Text="Dap An Dung"></asp:Label>
                <asp:DropDownList ID="drplDAdung" runat="server" Enabled="False" Height="16px" 
                    Width="126px">
                    <asp:ListItem></asp:ListItem>
                    <asp:ListItem></asp:ListItem>
                    <asp:ListItem></asp:ListItem>
                    <asp:ListItem></asp:ListItem>
                </asp:DropDownList>
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    CellPadding="4" DataSourceID="SqlDataSource1" ForeColor="#333333" 
                    GridLines="None" onselectedindexchanged="GridView1_SelectedIndexChanged" 
                    AutoGenerateSelectButton="True" DataKeyNames="MaCH">
                    <RowStyle BackColor="#EFF3FB" />
                    <Columns>
                        <asp:BoundField DataField="MaCH" HeaderText="MaCH" SortExpression="MaCH" 
                            ReadOnly="True" />
                        <asp:BoundField DataField="NoiDungCH" HeaderText="NoiDungCH" 
                            SortExpression="NoiDungCH" />
                        <asp:BoundField DataField="DA1" HeaderText="DA1" SortExpression="DA1" />
                        <asp:BoundField DataField="DA2" HeaderText="DA2" SortExpression="DA2" />
                        <asp:BoundField DataField="DA3" HeaderText="DA3" SortExpression="DA3" />
                        <asp:BoundField DataField="DA4" HeaderText="DA4" SortExpression="DA4" />
                        <asp:BoundField DataField="DADUNG" HeaderText="DADUNG" 
                            SortExpression="DADUNG" />
                        <asp:BoundField DataField="Mucdo" HeaderText="Mucdo" SortExpression="Mucdo" />
                    </Columns>
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#2461BF" />
                    <AlternatingRowStyle BackColor="White" />
                </asp:GridView>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:TracNghiemTrucTuyenConnectionString %>" 
                    SelectCommand="SELECT * FROM [tbl_NGANHANGCAUHOI]"></asp:SqlDataSource>
            </td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>

